package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-01-13
*/
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="construction_work_access_monad对象", description="施工工程准入审批单")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "construction_work_access_monad", resultMap = "BaseResultMap")
public class ConstructionWorkAccessMonadBean extends Model<ConstructionWorkAccessMonadBean> {

    private static final long serialVersionUID = -5809886090177543882L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "obj_id")
    private String objId;

    @ApiModelProperty(value = "施工工程ID")
    private String constructionWorkObjId;

    @ApiModelProperty(value = "审批单号")
    private Integer approvalNumber;
    
    @ApiModelProperty(value = "审批单类型，code:ApprovalFormStatus（人员准入、车辆准入）")
    private String type;
    
    @ApiModelProperty(value = "关联ID")
    private String associationObjId;

    @ApiModelProperty(value = "准入状态")
    private String accessStatus;

    @ApiModelProperty(value = "意见")
    private String opinion;
    
    @ApiModelProperty(value = "准入周期开始")
    private Date cycleStart;

    @ApiModelProperty(value = "准入周期结束")
    private Date cycleEnd;
    
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;
    
    @ApiModelProperty(value = "创建单位")
    private String createUserOrgId;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;
}
